<?php
/**
 * Created by PhpStorm.
 * User: tyong
 * Date: 2018/10/11
 * Time: 22:58
 */
namespace app\core\article\logic;
use app\common\base\BaseLogic;

class Article extends BaseLogic
{
    //连贯操作类实例
    private static $art;
    private static $art_cate;
    //初始化当前类
    protected function initialize(){
        self::$art=core("article/Article");
        self::$art_cate=core("article/ArticleCategory");
    }
    ////////////////////////////文章分类相关/////////////////////////////
    function getCategorys($request=[],$param=[]){
        $result=self::$art_cate->getList($request);
        return $result;
    }




    ////////////////////////////文章相关/////////////////////////////
    function getArticles($request=[]){
        return self::$art->getList($request);
    }
}